package vns.shared;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.google.appengine.api.datastore.Key;

public class ObjectDTO implements Serializable {

	private Key id;
	private String status;
	private String otype;
	private List<ObjectPropertyDTO> listProperty = new ArrayList<ObjectPropertyDTO>();
	private String type;
	private String main;
	// khi ong load object load luon cai list nay, truyen gia tri vao luon
	// khi ong update ma ton tai la ist nay thi update luon value cua object, ong lam dc ko
	// trong cai ObjectPropertyDTO do co key cua ObjectProperty ko bit luu dc ko 
		
	public ObjectDTO(){}
	public ObjectDTO(Key Id,String OType, String Status){
		setinfo(Id, OType, Status);
	}
	
	public void setinfo(Key id,String oType, String status){
		this.id=id;
		this.otype=oType;
		this.status=status;
	}
	
	public Key getId(){
		return id;
	}
	
	public void setId(Key Id){
		this.id=Id;
	}
	
	public String getStatus(){
		return status;
	}
	
	public void setStatus(String Status){
		this.status=Status;
	}

	public void setOtype(String otype) {
		this.otype = otype;
	}

	public String getOtype() {
		return otype;
	}
	public void setListProperty(List<ObjectPropertyDTO> listProperty) {
		this.listProperty = listProperty;
	}
	public List<ObjectPropertyDTO> getListProperty() {
		return listProperty;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getType() {
		return type;
	}
	public void setMain(String main) {
		this.main = main;
	}
	public String getMain() {
		return main;
	}
}
